package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.CommissionAuthority;
import com.zhijian.medical.entity.vo.request.CommissionAuthoritySearchVo;
import com.zhijian.medical.entity.vo.response.CommissionAuthorityVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 人员-分级授权书项目 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-03-28 17:07:25
 */
public interface CommissionAuthorityService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    CommissionAuthority selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    CommissionAuthorityVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 新增
    *
    * @param commissionAuthority
    * @return
    */
    Long insert(CommissionAuthority commissionAuthority);

    /**
    * 更改
    *
    * @param commissionAuthority
    * @return
    */
    boolean update(CommissionAuthority commissionAuthority);

    /**
    * 总数
    *
    * @param commissionAuthoritySearchVo
    * @return
    */
    Integer count(CommissionAuthoritySearchVo commissionAuthoritySearchVo);

    /**
    * 列表
    *
    * @param commissionAuthoritySearchVo
    * @return
    */
    List<CommissionAuthorityVo> selectList(CommissionAuthoritySearchVo commissionAuthoritySearchVo);

    /**
    * 分页查询
    *
    * @param commissionAuthoritySearchVo
    * @return
    */
    Page<CommissionAuthorityVo> selectPage(CommissionAuthoritySearchVo commissionAuthoritySearchVo);
}